package ch3;

/**
 * Created by wyao on 17-3-6.
 * 多使用局部变量
 */
public class C3_15 {
    public static int b = 0;

    public static void main(String[] args) {
        int a = 0;
        long start = System.currentTimeMillis();
        for (int i = 0; i < 1000000000; i++) {
            a++;
        }
        System.out.println(System.currentTimeMillis() - start);

        start = System.currentTimeMillis();
        for (int i = 0; i < 1000000000; i++) {
            b++;
        }
        System.out.println(System.currentTimeMillis() - start);
    }
}
